package com.finer.remote.document;

import com.finer.entity.ResponseMessage;
import com.finer.entity.document.FinerGoodUnit;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

public interface FinerGoodUnitRemote {
    @RequestMapping("queryUnitByPage")
    @ResponseBody
    ResponseMessage queryUnitByPage(@RequestParam Map map);
    @RequestMapping("addUnit")
    @ResponseBody
    ResponseMessage addUnit(@RequestBody FinerGoodUnit finerGoodUnit);
    @RequestMapping("delUnit")
    @ResponseBody
    ResponseMessage delUnitById(@RequestParam("id") Integer id);
    @RequestMapping("updUnit")
    @ResponseBody
    ResponseMessage updUnit(@RequestBody FinerGoodUnit finerGoodUnit);
    @RequestMapping("getUnitById")
    @ResponseBody
    ResponseMessage getUnitById(@RequestParam("id") Integer id);
}
